/*******************************************************************************
 ** 
 ** This file is part of cmemtrac
 ** (C) 2011 Kevin Druelle 
 **
 ** Cmemtrac is free software: you can redistribute it and/or modify
 ** it under the terms of the GNU Lesser General Public License as published by
 ** the Free Software Foundation, either version 3 of the License, or
 ** (at your option) any later version.
 ** 
 ** Cmemtrac is distributed in the hope that it will be useful,
 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 ** GNU General Public License for more details.
 ** 
 ** You should have received a copy of the GNU General Public License
 ** along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
 ** 
 ******************************************************************************/

#ifndef __C_LIST_H__
#define __C_LIST_H__

typedef struct clist_node_st *clist_node_t;
typedef struct clist_st *clist_t;

#ifdef __cplusplus
extern "C" {
#endif

int clist_init(clist_t * list);

int clist_isEmpty(clist_t list);
size_t clist_getSize(clist_t list);

void * clist_front(clist_t list);
void * clist_back(clist_t list);

int clist_pushFront(clist_t * list, void * pData);
int clist_pushBack(clist_t * list, void * pData);
void * clist_popFront(clist_t * list);
void * clist_popBack(clist_t * list);

void clist_remove(clist_t * list, void * pData);

#ifdef __cplusplus
} // extern "C"
#endif

#endif // __C_LIST_H__

